import request from '@/utils/request'

// 查询用户商品关系列表
export function listUsergoods(query) {
  return request({
    url: '/flow/usergoods/list',
    method: 'get',
    params: query
  })
}

// 查询用户商品关系详细
export function getUsergoods(usergoodsid) {
  return request({
    url: '/flow/usergoods/' + usergoodsid,
    method: 'get'
  })
}

// 新增用户商品关系
export function addUsergoods(data) {
  return request({
    url: '/flow/usergoods',
    method: 'post',
    data: data
  })
}

// 修改用户商品关系
export function updateUsergoods(data) {
  return request({
    url: '/flow/usergoods',
    method: 'put',
    data: data
  })
}

// 删除用户商品关系
export function delUsergoods(usergoodsid) {
  return request({
    url: '/flow/usergoods/' + usergoodsid,
    method: 'delete'
  })
}
